/**
 * 
 */
package com.hexacta.hrs.report.managers;

import java.io.ByteArrayOutputStream;
import java.util.ArrayList;
import java.util.Collection;
import java.util.HashMap;
import java.util.Map;

import com.hexacta.hrs.report.AbstractReport;
import com.hexacta.hrs.util.Pair;

/**
 * @author mfunes
 * CLASE DE PRUEBA!
 */
public class TestReport extends AbstractReport {

    /** {@inheritDoc} */
    public ByteArrayOutputStream createPDFReport(String reportName, String reportTemplateLocation,
            Map<String, Object> filters, Map<String, Object> parameters) {
        return this.createPDF(reportTemplateLocation, parameters, getReportData(filters));
    }
    /*
     * (non-Javadoc)
     * 
     * @see com.hexacta.hrs.report.Report#createXLSReport(java.lang.String,
     * java.lang.String)
     */
    public ByteArrayOutputStream createXLSReport(String reportName, String reportTemplateLocation,
            Map<String, Object> filters, Map<String, Object> parameters) {
        return this.createExcel(reportTemplateLocation, parameters, getReportData(filters));
    }
    
    /** {@inheritDoc} */
	@SuppressWarnings("unchecked")
	public ByteArrayOutputStream createPDFReport(final String reportName, final String reportTemplateLocation, final Map<String, Object> filters) {
		//Aca se cargarian los datos necesarios.
		Map parameters = new HashMap<Object, Object>();
		Collection collection = new ArrayList<Object>(); 
		collection.add(new Pair("p1c1", "p1c2"));
		collection.add(new Pair("p2c1", "p2c2"));
		collection.add(new Pair("p3c1", "p3c2"));
		return createPDF(reportTemplateLocation, parameters, collection);
	}

	/** {@inheritDoc} */
	@SuppressWarnings("unchecked")
	public ByteArrayOutputStream createXLSReport(String reportName, String reportTemplateLocation, Map<String, Object> filters) {
		//Aca se cargarian los datos necesarios.
		Map parameters = new HashMap<Object, Object>();
		Collection collection = new ArrayList<Object>();
		collection.add(new Pair("p1c1", "p1c2"));
		collection.add(new Pair("p2c1", "p2c2"));
		collection.add(new Pair("p3c1", "p3c2"));
		return createExcel(reportTemplateLocation, parameters, collection);
	}

	@SuppressWarnings("unchecked")
	@Override
	protected Collection getReportData(Map<String, Object> filters) {
		// TODO Auto-generated method stub
		return null;
	}

	@SuppressWarnings("unchecked")
	@Override
	protected Map getReportParameters() {
		// TODO Auto-generated method stub
		return null;
	}

}
